#pragma once

extern "C" {
#include "sqlite3.h"
}

#include <string>
#include "user/user.hpp"
#include "user/message.hpp"

class Database {
public:
	Database(const std::string& filename);
	~Database();
	bool writeHistory(const Message& message) const;
public:
	static bool createDatebaseFile(const std::string& filename);

private:
	sqlite3* db;
};